package com.finance.report.dao;

import com.finance.framework.lang.Page;
import com.finance.report.bean.pojo.LogisticsComittedInfos;
import com.finance.report.bean.pojo.LogisticsCommitted;
import com.finance.report.bean.pojo.LogisticsExtend;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public interface LogisticsExtendMapper {
	LogisticsExtend getById(@Param("tableName")String tableName,@Param("id") Long id);
	List<LogisticsExtend> listAll(@Param("tableName")String tableName);
	int queryListCount(Map param);
	List<LogisticsExtend> listByPage(Page page);
	List<LogisticsExtend> extendsInfos(Page page);
	int add(@Param("tableName")String tableName,@Param("logisticsExtend")LogisticsExtend logisticsExtend);
	int delete(@Param("tableName")String tableName,@Param("id") Long id);
	int update(@Param("tableName")String tableName,@Param("logisticsExtend")LogisticsExtend logisticsExtend);
	int updateWithdataValid(@Param("tableName")String tableName,@Param("logisticsExtend")LogisticsExtend logisticsExtend,@Param("dataValid") String dataValid);
    LogisticsExtend getByWayBillNum(@Param("tableName")String tableName,@Param("wayBillNum") String wayBillNum);
    List<LogisticsCommitted> getManLogistics (@Param("extendTableName")String extendTableName, @Param("postmanNo")String postmanNo);
	LogisticsComittedInfos getLogisticsInfo (@Param("tableName") String tableName,@Param("waybillNum") String waybillNum);
    List<String> getPostmans(@Param("extendTableName")String extendTableName);
	int isFinished(@Param("extendTableName") String extendTableName);
}